#include "include.h"

extern u8 menuNum;  // 菜单选择
extern u8 Color[6];

/**------------------
  * @brief  默认执行的代码程序
---------------- ---*/
void Robot_Ready(void)		
{
	switch(menuNum)
	{
		/*------------ 1 ------------*/
		case 1:
		{
			//go();
			//go_test(1);
			//One_Green();
			while(1) stop();
		}
		break;
		
		/*------------ 2 ------------*/
		case 2:
		{
			go_test(2);
			//Two_Green();
			while(1) stop();
		} 
		break;
		
		/*------------ 3 ------------*/
		case 3:
		{
			go_test(3);
			//Three_Green();
			while(1) stop();
		}
		break;
		
		/*------------ 4 ------------*/
		case 4:
		{
			go_test(4);
			//Four_Green();
			while(1) stop();
		} 
		break; 
		
		/*------------ 5 ------------*/
		case 5:
		{
			One_Green();
			while(1) stop();
		}
		break;
		
		/*------------ 6 ------------*/
		case 6: 
		{
			Two_Green();
			while(1) stop();
		}
		break;
		
		/*------------ 7 ------------*/
		case 7:
		{	
			Three_Green();
			while(1) stop();
		}
		break;
		
		/*------------ 8 ------------*/
		case 8:	
		{ 
			Four_Green();
			while(1) stop();
		}	
		break;
		 
		/*------------ 9 ------------*/
		case 9:
		{			
			//go();
			Color_Enter();
			while(1) stop();
		}
		break;
		
		/*------------ 10 ------------*/
		case 10:
		{				
			First_Road();
			while(1) stop();
		}
		break;
		
		/*------------ 11 ------------*/
		case 11:
		{				
//			Part_1_34();
			Color_Exit(2, 0, 0, 0, 0);
			Home();
			while(1) stop();
		}
		break;
		
		/*------------ 12 ------------*/
		case 12:
		{				
			Color_Exit(0, 2, 0, 0, 0);
			Home();
			while(1) stop();
		}
		break;
		
		/*------------ 13 ------------*/
		case 13:
		{				
//			Part_3_78();
			Color_Exit(0, 0, 2, 0, 0);
			Home();
			while(1) stop();
		}
		break;

		/*------------ 14 - -----------*/
		case 14:
		{				
//			Part_3_87();
//			Color_Exit(0, 0, 0, 2, 0);
//			Home();
			speed(-30, 30);
			Delay_ms(700);
			while(1) stop();
		}
		break;
	}
}
